<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    添加设备
                </h4>
            </div>
            <form role="form" action="/site/add-device" method="post"
                  id="addForm" class="form-horizontal">
                <div class="modal-body">
                    <div class="form-group">
                        <label for="deviceId" class="col-sm-4 control-label">设备id</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" placeholder="" name="deviceId">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="deviceName" class="col-sm-4 control-label">设备名称</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" placeholder="" name="deviceName">
                        </div>
                    </div>
                    <p class="text-danger  error-msg" style="display: none"></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        关闭
                    </button>
                    <button type="button" class="btn btn-primary submit-modal">
                        提交更改
                    </button>
                </div>
            </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

